import request from '@/utils/request'

//查询最新课程
export function mostNew(data){
	return request({
		url:'/api/course/mostNew',
        method:"post",
        data
	})
}
//查询一级分类
export function getFirstCategorys(){
	return request({
		url:'/api/course/category/getFirstCategorys',
      
	})
}
//查询二级分类
export function getSecondCategorys(params){
	return request({
		url:'/api/course/category/getSecondCategorys',
        params
	})
}
//查询课程
export function getSearch(data){
	return request({
		url:'/api/course/search',
		method:"post",
        data
	})
}

//课程详情
export function getDetail( params ){
	return request({
		url:'/api/course/getDetail',
		params
	})
}
